package com.errol.generic.file.core.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zhang xiao bin
 * @version v1.0
 * @date 2021/06/29
 * @since v
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
public class TempFileVO {

    @ApiModelProperty("服务端相对路径")
    private String filepath;

    @ApiModelProperty("文件原名称，含扩展名")
    private String filename;

    public TempFileVO(TempFile tempFile) {
        this.filepath = tempFile.getFilePath();
        this.filename = tempFile.getOriginalName();
    }
}
